-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SEA for test executable instead of pkg #6242
Conversation
cc123e6
to
541c8fd
Compare
dce25fa
to
59c50a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 8 of 10 files at r1.
Reviewable status: 7 of 10 files reviewed, 3 unresolved discussions (waiting on @dlon)
.github/workflows/desktop-e2e.yml
line 248 at r1 (raw file):
with: token: ${{ secrets.GITHUB_TOKEN }} node-version: 20
We should use the node-version-file
in this workflow as well! This workflow must have been forgotten when we switched to Volta 🤔
.github/workflows/translations.yml
line 29 at r1 (raw file):
uses: actions/setup-node@v4 with: node-version: ${{ steps.volta.outputs.node }}
We should use the node-version-file
here as well!
gui/standalone-tests.ts
line 79 at r1 (raw file):
if (process.platform === 'darwin') { child_process.spawnSync('/usr/bin/codesign', ['--sign', '-', nodeBin]);
Do we really need to sign it? When I ran the hello
example on my mac it worked fine without a signature?
59c50a7
to
767b41a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 6 of 10 files reviewed, 4 unresolved discussions (waiting on @raksooo)
.github/workflows/translations.yml
line 29 at r1 (raw file):
Previously, raksooo (Oskar Nyberg) wrote…
We should use the
node-version-file
here as well!
Done.
.github/workflows/translations.yml
line 34 at r2 (raw file):
- name: Update NPM run: npm i -g npm@${{ steps.volta.outputs.npm }}
Do you know why we explicitly updated npm here? I suspect it's unnecessary, but I might be wrong.
gui/standalone-tests.ts
line 79 at r1 (raw file):
Previously, raksooo (Oskar Nyberg) wrote…
Do we really need to sign it? When I ran the
hello
example on my mac it worked fine without a signature?
I had to sign it. Otherwise, macOS would kill the process. I think this requirement is stricter on arm Macs.
70f82fc
to
49d73cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 6 of 10 files reviewed, 4 unresolved discussions (waiting on @raksooo)
.github/workflows/desktop-e2e.yml
line 248 at r1 (raw file):
Previously, raksooo (Oskar Nyberg) wrote…
We should use the
node-version-file
in this workflow as well! This workflow must have been forgotten when we switched to Volta 🤔
Done.
.github/workflows/translations.yml
line 34 at r2 (raw file):
Previously, dlon (David Lönnhager) wrote…
Do you know why we explicitly updated npm here? I suspect it's unnecessary, but I might be wrong.
It might be that we were using the wrong npm
(somewhere in PATH
). shell: bash
seemed to fix this.
1cb72f2
to
145b3c2
Compare
249fd66
to
af67e2d
Compare
145b3c2
to
1aa48a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r3, 2 of 2 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dlon)
.github/workflows/translations.yml
line 34 at r2 (raw file):
Previously, dlon (David Lönnhager) wrote…
It might be that we were using the wrong
npm
(somewhere inPATH
).shell: bash
seemed to fix this.
I'm pretty sure we updated NPM because we don't always use the npm version corresponding to the Node version installed. But maybe that is solved automatically now with node-version-file
.
gui/standalone-tests.ts
line 79 at r1 (raw file):
Previously, dlon (David Lönnhager) wrote…
I had to sign it. Otherwise, macOS would kill the process. I think this requirement is stricter on arm Macs.
Okay 👍
gui/scripts/build-test-executable.sh
line 29 at r5 (raw file):
local temp_output="./build/temp-test-executable$bin_suffix" local output="../dist/app-e2e-tests-$PRODUCT_VERSION-$TARGET$bin_suffix" local node_copy_path="./build/test/node$bin_suffix"
We probably shouldn't put anything like node in the build
directory. I think it will be packaged into the Electron app by electron-builder 🤔
2620525
to
c31fa91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 9 of 10 files reviewed, 2 unresolved discussions (waiting on @raksooo)
gui/scripts/build-test-executable.sh
line 29 at r5 (raw file):
Previously, raksooo (Oskar Nyberg) wrote…
We probably shouldn't put anything like node in the
build
directory. I think it will be packaged into the Electron app by electron-builder 🤔
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 9 of 10 files reviewed, 2 unresolved discussions (waiting on @dlon)
gui/scripts/build-test-executable.sh
line 38 at r6 (raw file):
cp "$node_path" "$node_copy_path" # shellcheck disable=SC2068 tar -czf ./build/test/assets.tar.gz ${ASSETS[@]}
This should go in $temp_dir
as well right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 9 of 10 files reviewed, 2 unresolved discussions (waiting on @raksooo)
gui/scripts/build-test-executable.sh
line 38 at r6 (raw file):
Previously, raksooo (Oskar Nyberg) wrote…
This should go in
$temp_dir
as well right?
Preferably not, since the asset path needs to be specified in standalone-tests.sea.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r6, 1 of 1 files at r7, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dlon)
2526dac
to
48a8bf9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dlon and @raksooo)
48a8bf9
to
236c0a8
Compare
Since the latter is deprecated.
Fix DES-949.
This change is